<?php

/**
 * @author christian
 * @copyright 2011
 * @abstract carga de todo el itinerario que es parte de un tour del itenario del tour
 */
 
 

$ruta=$_SERVER['DOCUMENT_ROOT']."/viventura"."/MDCostos";
include_once("$ruta/conf/CConfig.php");
include_once("$ruta/elements/head.tpl");
include_once("$ruta/MDItinerary/Restaurant/CTableRestaurant.php");
include_once("$ruta/MDItinerary/MDItineraryEditDraw.php");
include_once("$ruta/MDCostosGeneral/CDrawPageReg.php");
include_once("$ruta/MDCostosGeneral/CTourEditDraw.php");
include_once("$ruta/view/CDrawMenuTour.php");
include_once("$ruta/star.php");


echo "Hola";

$items=array("Transporte"=>"","Entradas"=>"CSmallDefinePack.php","Guías locales"=>"CTourEdit.php?codigo=159&default=2",
                 "Alojamientos"=>"/viventura/MDTour/","Restaurantes"=>"","Servicios de terceros"=>"","Tour Conductor"=>"","</br><em>Ver tours</em>"=>"","<em>Gestión actividades</em>"=>"");

CDrawMenuTour::getInstance()->setMenu($items);
CDrawMenuTour::getInstance()->rigth_side_begin();//empieza lado derecho 
CDrawMenuTour::getInstance()->DrawDivAdBegin("content_area_user_title","1");echo "<h1>Destino Sur</h1>";


$idPackTour=$_GET['codigo']; // El código que recibe aqui es el código del tour
$idTour = CTourEditDraw::getInstance()->getAnyId("pack_has_tour","idPackTour",$idPackTour,"TOUR_idTour");

echo "<div id='dashboard_info'>";
?>
<div id="mostrarDiv"><a href="javascript:mostrardiv();">Mostrar Div</a></div>
<div id="flotante" style="display:none;">
<?php
$ahead_behind=array("CodIte"=>"Código","NumRecRes"=>"Número del recibo","CanIteRec"=>"Cantidad","PriUni"=>"Precio Unitario","MonPag"=>"Moneda de pago","MonCha"=>"Tipo de Cambio");

$action="MCRegistroRestaurant.php";$name="formulario_registro";$method="post";$NAME="Añadir factura: ";
CDrawPageReg::getInstance()->DrawHead($action,$name,$method,$NAME);

CDrawPageReg::getInstance()->DrawTextBox($ahead_behind);
echo "<p align='right'>";
CDrawPageReg::getInstance()->DrawSubmmit("Añadir");
echo "</p>";
?>

 Este es un div flotante <br><a href="javascript:cerrar();"> presiona aquí para cerrar</a> </div>

<?php
echo "</div>";

$campos=array("CodIte"=>"Código","NumRecRes"=>"Número del recibo","CanIteRec"=>"Cantidad","PriUni"=>"Precio Unitario","MonPag"=>"Moneda de pago","MonCha"=>"Tipo de Cambio");


CTableRestaurant::getInstance()->DrawTable("Alimentación y resturantes","restaurant_has_pack_has_tour",$campos,$idPackTour);
MDItineraryEditDraw::getInstance()->HiddenValue($idTour, "idTour");


CDrawMenuTour::getInstance()->DrawDivAdEnd();
    
?>  




<script>



function mostrarDiv() {
div = document.getElementById();
if(div.style.display == ‘block’){
div.style.display = ‘none’;
}else if(div.style.display == ‘none’){
div.style.display = ‘block’;
};
}
</script>



